##############################################################
# Title: Welcome PM on First Login
# Author: Thoul  thoul@phpbbsmith.com  http://www.phpbbsmith.com
# Description: Extends Duvelske's WPM (Welcome PM) hack. 
# Version: 1.0.3
#
# Installation Level: Easy
# Installation Time: 5 Minutes
# Files To Edit: login.php, includes/usercp_register.php
# Included Files: mods/wpm/login_wpm.php
##############################################################
# Author's Notes:
#
# Before proceeding, please read the file README.txt and consult the
# install.txt, upgrade.txt, or uninstall.txt for the actual installation,
# upgrade, or uninstallation instructions.
#
##############################################################
# BEFORE FOLLOWING THESE INSTRUCTIONS, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################

#
#-----[ SQL ]------------------------------------------
#

ALTER TABLE phpbb_users ADD user_welpm tinyint(1) NOT NULL default '0';
UPDATE phpbb_users SET user_welpm=1;

#
#-----[ OPEN ]------------------------------------------
#
login.php

#
#-----[ FIND ]------------------------------------------
#

<?php

#
#-----[ AFTER, ADD ]------------------------------------------
#

// This file modified for Welcome PM on First Login 1.0.3

#
#-----[ FIND ]------------------------------------------
#

					if( $session_id )
					{

#
#-----[ AFTER, ADD ]------------------------------------------
#

//------------------------------------------------------------------------------
// Welcome PM on First Login - Begin Code Alteration
//
						include_once($phpbb_root_path . 'mods/wpm/login_wpm.' . $phpEx);
//
// Welcome PM on First Login - End Code Alteration
//------------------------------------------------------------------------------

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#

<?php

#
#-----[ AFTER, ADD ]------------------------------------------
#

// This file modified for Welcome PM on First Login 1.0.3

#
#-----[ FIND ]------------------------------------------
#

			//
			// START wpm mod by Duvelske (http://www.vitrax.vze.com)

#
#-----[ BEFORE, ADD ]------------------------------------------
#

//------------------------------------------------------------------------------
// Welcome PM on First Login - Begin Code Alteration
//
/* Next line disables the Original WPM Code following it. */

/*

#
#-----[ FIND ]------------------------------------------
#

			// END wpm mod
			//

#
#-----[ AFTER, ADD ]------------------------------------------
#

*/

/* Above line marks the end of disabling of the Original WPM Code. */
//
// Welcome PM on First Login - End Code Alteration
//------------------------------------------------------------------------------


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# End